package com.cysyz.web.modules.base.permission.support;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jiaoyujia on 2015/1/16.
 */
public enum PrivilegeType {
    NORMAL, MENU, PRIVILEGE_GROUP, PRIVILEGE_GROUP_GROUP;

    public static List<Integer> notNormalTypes() {
        List<Integer> types = new ArrayList<Integer>();
        PrivilegeType[] values = PrivilegeType.values();
        for (PrivilegeType type : values) {
            if (type != PrivilegeType.NORMAL) {
                types.add(type.ordinal());
            }
        }
        return types;
    }
}
